<form method="post" class="form-horizontal" id="form-modal-submit">
    <input type="hidden" name="param_id" id="param_id" value="0">
    <input type="hidden" name="param_siteid" id="param_siteid" value="{$site['site_id']}">
    <input type="hidden" name="param_columnid" id="param_columnid" value="{:isset($column['column_id'])?$column['column_id']:'0'}">
    <div class="modal fade" data-backdrop="static" id="modal-create">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
                    <h4 class="modal-title">参数管理</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label for="param_name" class="col-sm-2 required">名称</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" name="param_name" id="param_name" placeholder="名称" required>
                        </div>
                        <div class="col-sm-4">
                            <p class="help-block with-errors">名称</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="param_type" class="col-sm-2 required">类型</label>
                        <div class="col-sm-6">
                            <select name="param_type" id="param_type" class="form-control">
                                {volist name="param_type" id="vo"}
                                <option value="{$key}">{$vo} ({$key})</option>
                                {/volist}
                            </select>
                        </div>
                        <div class="col-sm-4">
                            <p class="help-block with-errors"></p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="param_tips" class="col-sm-2">提示</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" name="param_tips" id="param_tips" placeholder="提示">
                        </div>
                        <div class="col-sm-4">
                            <p class="help-block with-errors">提示信息</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="param_required" class="col-sm-2">必填</label>
                        <div class="col-sm-6">
                                <label class="radio-inline">
                                    <input type="radio" name="param_required" value="1"> 是(必须填写)
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="param_required" value="0" checked="true"> 否(不用必填)
                                </label>
                        </div>
                        <div class="col-sm-4">
                            <p class="help-block with-errors"></p>
                        </div>
                    </div>
                    <div class="form-group mb0">
                        <label for="param_value" class="col-sm-2">初始值<br>默认值</label>
                        <div class="col-sm-8">
                            <textarea name="param_value" id="param_value" class="form-control" rows="5" placeholder="每行一个值"></textarea>
                        </div>
                        <div class="col-sm-2">
                            <p class="help-block"></p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2">&nbsp;</label>
                        <div class="col-sm-10"><p class="form-control-static">默认值只对：单选框，多选框，下拉框有效。每行一个值。</p></div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="submit" class="btn btn-primary">保存</button>
                </div>
            </div>
        </div>
    </div>
</form>